import request from '@/utils/request'

// 查询单据编码规则列表
export function listNcDocumentCodeRules(query) {
  return request({
    url: '/base/NcDocumentCodeRules/list',
    method: 'get',
    params: query
  })
}

// 查询单据编码规则详细
export function getNcDocumentCodeRules(id) {
  return request({
    url: '/base/NcDocumentCodeRules/' + id,
    method: 'get'
  })
}

// 新增单据编码规则
export function addNcDocumentCodeRules(data) {
  return request({
    url: '/base/NcDocumentCodeRules',
    method: 'post',
    data: data
  })
}

// 修改单据编码规则
export function updateNcDocumentCodeRules(data) {
  return request({
    url: '/base/NcDocumentCodeRules',
    method: 'put',
    data: data
  })
}

// 删除单据编码规则
export function delNcDocumentCodeRules(id) {
  return request({
    url: '/base/NcDocumentCodeRules/' + id,
    method: 'delete'
  })
}
